// component/index.js
import Pagination from "@/components/Pagination";
import DictTag from "@/components/DictTag";
import RightToolbar from "@/components/RightToolbar";
import Editor from "@/components/Editor";
import FileUpload from "@/components/FileUpload";
import ImageUpload from "@/components/ImageUpload";
import ImagePreview from "@/components/ImagePreview";

export default (Vue) => {
  //  分页组件
  Vue.component("Pagination", Pagination);
  // 字典标签组件
  Vue.component("DictTag", DictTag);
  // 自定义表格工具组件
  Vue.component("RightToolbar", RightToolbar);
  // 富文本组件
  Vue.component("Editor", Editor);
  // 文件上传组件
  Vue.component("FileUpload", FileUpload);
  // 图片上传组件
  Vue.component("ImageUpload", ImageUpload);
  // 图片预览组件
  Vue.component("ImagePreview", ImagePreview);
};
